﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<NerdDinner.Models.TwitterResults>" MasterPageFile="~/Views/Shared/Site.Master"  %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    Twitter results
</asp:Content>

<asp:Content ID="Create" ContentPlaceHolderID="MainContent" runat="server">

    <h2>View twitter results</h2>
    
    <p><b>Your book: Posts on twitter related to <%: Model.BookName %>.</b></p>

    <% if (Model.Result != null)
       {
           for (int i = 0; i < Model.Result.Count; i++)
           { %>

            <p><b style="color:Blue;"><%: Model.Result[i].AuthorName%></b>: <%= Model.Result[i].Content%><br /></p>

        <% }
        } %>

</asp:Content>